<?php include_once './application/views/sys_admin/common/header.php';  ?>
<!-- admin_main -->
<div class=" definewidth m20">
	<form  method="post" id="consetForm" name="consetForm">
		<table class="table table-bordered table-hover m10">
		 <tr>
	        <td class="tableleft">名称</td>
	        <td><input type="text" name="title" id="title" size="50"  value="" /> </td>
	   	</tr>
	   	<tr>
	        <td class="tableleft">排序</td>
	        <td><input type="text" name="forder" id="forder" value="" /> </td>
	   	</tr>
	   	<tr>
	        <td class="tableleft">借款用途</td>
	        <td><textarea name="content" id="content" style="width:800px;height:200px;" ></textarea> </td>
	   	</tr>
	   	<tr>
	        <td class="tableleft"></td>
	        <td> <button type="button" class="btn btn-success"  onclick="consetSubmit();" >提交</button> </td>
	   	</tr>
	   </table>
	</form>

</div>
<script type="text/javascript">

function consetSubmit(){
	var options = {
		url : '/sys_admin/conset/add_use/',
		dataType: "json",
		type:"post",
		success : function(ret) {
			if(ret.msg=='1'){
				alert("操作成功");
				window.location.href ='/sys_admin/conset/zhs_borrowuse';
			}else{
				alert(ret.msg);
			}
			
		}
	};
	$("#consetForm").ajaxSubmit(options);
	return false;
}
</script>
<div id="dialog" title="系统提示" style="display:none"><p id="msg" style="text-align:center"></p></div>
